-- GENERATED SPELL FOR [Scorpid Reaver] --


function spell0_4140(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40505,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4140', 652, 1)
end

function Sorts_4140(pUnit, Event)
local choix_sorts_4140 = math.random(0, 0)
if choix_sorts_4140 == 0 then
pUnit:RegisterEvent('spell0_4140', 1, 1)
end
end

function mob4140_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4140', math.random(1500, 3000), 1)
end

function mob4140_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4140_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4140_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4140, 1, 'mob4140_Action')
RegisterUnitEvent(4140, 2, 'mob4140_Leave')
RegisterUnitEvent(4140, 3, 'mob4140_Kill')
RegisterUnitEvent(4140, 4, 'mob4140_Die')
